package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.SysUserCompetition;
import com.ruoyi.system.domain.SysUserPost;

/**
 * 用户和赛事关联Mapper接口
 * 
 * @author ruoyi
 * @date 2022-05-20
 */
public interface SysUserCompetitionMapper 
{
    /**
     * 查询用户和赛事关联
     * 
     * @param userId 用户和赛事关联主键
     * @return 用户和赛事关联
     */
    public SysUserCompetition selectSysUserCompetitionByUserId(Long userId);

    /**
     * 查询用户和赛事关联列表
     * 
     * @param sysUserCompetition 用户和赛事关联
     * @return 用户和赛事关联集合
     */
    public List<SysUserCompetition> selectSysUserCompetitionList(SysUserCompetition sysUserCompetition);

    /**
     * 新增用户和赛事关联
     * 
     * @param sysUserCompetition 用户和赛事关联
     * @return 结果
     */
    public int insertSysUserCompetition(SysUserCompetition sysUserCompetition);

    /**
     * 修改用户和赛事关联
     * 
     * @param sysUserCompetition 用户和赛事关联
     * @return 结果
     */
    public int updateSysUserCompetition(SysUserCompetition sysUserCompetition);

    /**
     * 通过用户ID删除用户和赛事关联
     * 
     * @param userId 用户ID
     * @return 结果
     */
    public int deleteUserCompetitionByUserId(Long userId);

    /**
     * 批量删除用户和赛事关联
     * 
     * @param userIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteUserCompetitionByUserIds(Long[] userIds);

    /**
     * 批量新增用户岗位信息
     *
     * @param userCompetitionList 用户赛事列表
     * @return 结果
     */
    public int batchUserCompetition(List<SysUserCompetition> userCompetitionList);
}
